package com.atguigu.yygh.repository;

import com.atguigu.yygh.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @author kabuda
 * @create 2023-02-27 8:22
 */
@Repository
public interface ScheduleRepository extends MongoRepository<Schedule,String> {

    Schedule getScheduleByHoscodeAndDepcode(String hoscode, String depcode);

    Schedule getScheduleByHosScheduleId(String hosScheduleId);


    List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(String hospcode, String depcode, Date date);
}
